<template>
  <div v-if="node.deletable" class="node-delete-layer">
    <el-button :size="size" class="ant-btn-ghost node-delete-cancel" @click.stop="delNode(node, callback)">删除</el-button>
    <el-button :size="size" @click.stop="node.deletable = false">取消</el-button>
  </div>
</template>
<script>
  import { flowMixin } from '../mixins/flowMixin';
  export default {
    name: 'DeleteConfirm',
    mixins: [flowMixin],
    props: {
      node: {
        type: Object,
        default: function() {
          return {};
        },
      }
    },
    data() {
      return {
        size:'mini'
      };
    },
    methods: {
      callback() {
        this.$emit('callback');
      },
    },
  };
</script>
